package com.qf.mapper;

import com.qf.model.Farm;
import com.qf.model.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FarmMapper {

    public int add(Farm farm);

    public Farm findById(@Param("id") int id);

    public int edit(Farm farm);

    public int delete(@Param("id") int id);

    //当前页结果
    public List<Farm> findPage(@Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize, @Param("queryString")String queryString,@Param("userId")Integer userId);


    //总记录数
    public Long count(String queryString,@Param("userId")Integer userId);


    public List<Farm> findAll();


}
